Full Stack Django and React by Kolawole Mangabo
Author:Kolawole Mangabo
Language: eng
Format: epub
Publisher: Packt Publishing Pvt. Ltd.
Published: 2023-02-14T00:00:00+00:00
src/components/post/CreatePost.jsx
⦠function CreatePost() { const [show, setShow] = useState(false); const handleClose = () => setShow(false); const handleShow = () => setShow(true); return ( <> <Form.Group className="my-3 w-75"> <Form.Control className="py-2 rounded-pill border-primary text-primary" type="text" placeholder="Write a post" onClick={handleShow} /> </Form.Group> {/*Add modal code here*/} </> ); } export default CreatePost;
We are first adding the input that will trigger the Modal to be displayed. A click on the modal will set the show state to True, the state that is used for opening the modal. Letâs add the code for the modal:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
ActiveX | ASP.NET |
Cold Fusion | CSS |
DHTML | Java Server Pages |
JavaScript | PHP |
Python | Ruby |
XSL |
Hello! Python by Anthony Briggs(9713)
The Mikado Method by Ola Ellnestam Daniel Brolund(9589)
Dependency Injection in .NET by Mark Seemann(9126)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7627)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7357)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6418)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6256)
Svelte with Test-Driven Development by Daniel Irvine(6021)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5665)
Test-Driven Development with PHP 8 by Rainier Sarabia(5636)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(5620)
Web Development with Django by Ben Shaw Saurabh Badhwar(5039)
Kotlin in Action by Dmitry Jemerov(4900)
React Application Architecture for Production by Alan Alickovic(4779)
Audition by Ryu Murakami(4396)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4200)
Functional Programming in JavaScript by Mantyla Dan(3913)
Software Architecture for Web Developers by Mihaela Roxana Ghidersa(3792)
Accelerating Server-Side Development with Fastify by Manuel Spigolon Maksim Sinik & Matteo Collina(3706)
